<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Troika Examples</title>
</head>
<body>
    <div id="app"></div>
    <script>
        if (!navigator.xr) { //TODO refine for partial polyfilling?
            if (window.isSecureContext) {
                var polyfillSrc = 'https://cdn.jsdelivr.net/npm/webxr-polyfill@2.0.0'
                document.write('<script src="' + polyfillSrc + '"><' + '/script>')
                new WebXRPolyfill()
            } else {
                console.log('WebXR not detected, but will not attempt to polyfill on a non-secure site.')
            }
        }
    </script>
    <script src="dist/examples-bundle.js"></script>
</body>
</html>
